import * as http from '@api/http'
/**
 * @purpose 获取账单列表
 * @param options
 * @returns {*}
 */
export function items (options) {
  return http
    .get('member.items', options)
    .then(r => r.data)
}

/**
 * @purpose 重置密码
 * @param password
 * @param uid
 * @returns {Promise<T>}
 */
export function resetPassword (password, uid) {
  return http
    .post('member.resetPassword', {
      password: password,
      uid: uid
    })
    .then(r => r.data)
}

/**
 * @purpose 重置手机号码
 * @param mobile
 * @returns {Promise<T>}
 */
export function resetMobile (mobile, uid) {
  return http
    .post('member.resetMobile', {
      mobile: mobile,
      uid: uid
    })
    .then(r => r.data)
}
